/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import type.Month;


/**
 *
 * @author wei
 */
@Entity(name="RawMaterialPurchaseOrderReport")
public class RawMaterialPurchaseOrderReportEntity extends DataObjectEntity implements Serializable {
    @ManyToOne
    private RawMaterialEntity product;
    private long quantity;
    private int expectedYearOfReceipt;   
    private int expectedWeekOfReceipt;
    private Month expectedMonthOfReceipt;

    public RawMaterialPurchaseOrderReportEntity() {
        super();
    }
    
    public Month getExpectedMonthOfRecepit(){
        return expectedMonthOfReceipt;
    }
    
    public void setExpectedMonthOfReceipt(Month receipt){
        expectedMonthOfReceipt = receipt;
    }

    public int getExpectedWeekOfReceipt() {
        return expectedWeekOfReceipt;
    }

    public void setExpectedWeekOfReceipt(int expectedWeekOfReceipt) {
        this.expectedWeekOfReceipt = expectedWeekOfReceipt;
    }

    public int getExpectedYearOfReceipt() {
        return expectedYearOfReceipt;
    }

    public void setExpectedYearOfReceipt(int expectedYearOfReceipt) {
        this.expectedYearOfReceipt = expectedYearOfReceipt;
    }

    public RawMaterialEntity getProduct() {
        return product;
    }

    public void setProduct(RawMaterialEntity product) {
        this.product = product;
    }

    public long getQuantity() {
        return quantity;
    }

    public void setQuantity(long quantity) {
        this.quantity = quantity;
    }

    @Override
    public String childToString() {
        return "RawMaterialPurchaseOrderReportEntity{" + "product=" + product + ", quantity=" + quantity + ", expectedYearOfReceipt=" + expectedYearOfReceipt + ", expectedWeekOfReceipt=" + expectedWeekOfReceipt + '}';
    }
    
}
